//
//  XBNetWorkTool.swift
//  Sina
//
//  Created by 周旭斌 on 2017/3/28.
//  Copyright © 2017年 周旭斌. All rights reserved.
//

import UIKit
import AFNetworking

let netWork = XBNetWorkTool();

class XBNetWorkTool: AFHTTPSessionManager {
    
    class func shareInstance() ->XBNetWorkTool {
        netWork.responseSerializer.acceptableContentTypes = NSSet(objects: "application/json", "text/json", "text/javascript", "text/plain", "text/html") as? Set<String>;
        
        return netWork;
    }
   
    
}
